home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 August / Software of the Month Club 1996 August.iso / pc / dos / dtp / pcdraft / install.bat < prev    next >
DOS Batch File  |  1994-12-31  |  4KB  |  117 lines

  1. echo off
  2. cls
  3. :restart
  4. echo\
  5. echo       ┌────────────────────────────────────────────────────────────┐
  6. echo       │     PC-Draft-CAD   Installation                            │
  7. echo       │                                                            │
  8. echo       │     This will create a PCDCAD sub-directory on your        │
  9. echo       │     current disk. To install on your current hard disk     │
  10. echo       │                                                            │
  11. echo       │ 1 - If you downloaded PCDCAD.ZIP (single file),            │
  12. echo       │     Unzip PCDCAD.ZIP in a temporary directory or floppy.   │
  13. echo       │                                                            │
  14. echo       │ 2 - Make your hard disk root directory current.            │
  15. echo       │     ie: for the C: drive: enter: [C:] and [CD \]           │
  16. echo       │                                                            │
  17. echo       │ 3 - Run INSTALL [sourcedir] for example, if the files are  │
  18. echo       │     in C:\TEMP, run TEMP\INSTALL C:\TEMP. If they are on   │
  19. echo       │     the A: drive, run A:INSTALL A:                         │
  20. echo       │                                                            │
  21. echo       │     This will extract all the files from the self-         │
  22. echo       │     extracting LHARC file and will create a START.BAT      │
  23. echo       │     file apropriate for your display system.               │
  24. echo       │                                                            │
  25. echo       │     If you do not wish to continue, press Ctrl-C.          │
  26. echo       └────────────────────────────────────────────────────────────┘
  27. echo\
  28. pause
  29. if "%1"=="" goto noparm
  30. if exist pcdcad.exe goto badstart
  31. goto continue1
  32. :badstart
  33. echo  You should not install to the same drive/directory that contains
  34. echo  the PC-Draft CAD install files. Change to the root directory of
  35. echo  your hard disk: type CD \   and try again.
  36. goto exitout
  37. :continue1
  38. md pcdcad
  39. cd pcdcad
  40. if exist %1\pcdcad.exe goto continue
  41. echo  Invalid source drive or directory, Please check and try again.
  42. :noparm
  43. echo  You must include the drive and directory name that has the install
  44. echo  files. For example, enter: INSTALL A: (if the install disk is in A:)
  45. echo  Or, enter: INSTALL C:\TEMP  (if the install files are in \TEMP on C:)
  46. goto exitout
  47. :continue
  48. md fon
  49. md dwg
  50. md lib
  51. md mac
  52. %1\pcdcad
  53. copy *.fon fon
  54. del *.fon
  55. copy *.dwg dwg
  56. del *.dwg
  57. copy *.lib lib
  58. del *.lib
  59. copy *.mac mac
  60. del *.mac
  61. cls
  62. vidtest
  63. if errorlevel 7 goto HERCULES
  64. if errorlevel 5 goto VGACOLOR
  65. if errorlevel 4 goto VGAMONO
  66. if errorlevel 3 goto EGACOLOR
  67. if errorlevel 2 goto EGAMONO
  68. if errorlevel 1 goto CGA
  69. echo   Error in detecting video adapter
  70. goto exit2
  71. :HERCULES
  72. set vtype=Hercules
  73. copy hgcstart.bat start.bat
  74. del vgadrv.com
  75. del cgadrv.com
  76. del svgadrv.com
  77. goto exit
  78. :VGACOLOR    
  79. set vtype=VGA-Color
  80. goto VGA
  81. :EGACOLOR
  82. set vtype=EGA-Color
  83. goto VGA
  84. :VGAMONO    
  85. set vtype=VGA-Mono
  86. copy cga.cfg draft3.cfg
  87. goto MONO
  88. :EGAMONO    
  89. set vtype=EGA-Mono
  90. :MONO
  91. copy cga.cfg draft3.cfg
  92. :VGA
  93. copy vgastart.bat start.bat
  94. del hgcdrv.exe
  95. goto exit
  96. :CGA
  97. set vtype=CGA
  98. copy cgastart.bat start.bat
  99. copy cga.cfg draft3.cfg
  100. :exit
  101. echo             You have a %vtype% type video display
  102. :exit2
  103. set src=
  104. set vtype=
  105. echo\
  106. echo       ┌────────────────────────────────────────────────────────────┐
  107. echo       │  Installation is complete. To start PC-Draft-CAD, enter:   │
  108. echo       │                                                            │
  109. echo       │                       START                                │
  110. echo       │                                                            │
  111. echo       │  To print the user manual, type: COPY DRAFT3.DOC PRN       │
  112. echo       │  To print READ.ME, type: COPY READ.ME PRN                  │
  113. echo       └────────────────────────────────────────────────────────────┘
  114. echo\
  115. echo\
  116. :exitout
  117.